﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarketOnlineDAO;
using MarketOnlineDTO;

namespace MarketOnlineBUS
{
    public class LoaiSanPhamBUS
    {
        public Boolean ThemLoaiSanPham(LoaiSanPhamDTO lsp)
        {
            return new LoaiSanPhamDAO().ThemLoaiSanPham(lsp);
        }

        public Boolean XoaLoaiSanPham(LoaiSanPhamDTO lsp)
        {
            return new LoaiSanPhamDAO().XoaLoaiSanPham(lsp);
        }

        public Boolean CapNhatLoaiSanPham(LoaiSanPhamDTO lsp)
        {
            return new LoaiSanPhamDAO().CapNhatLoaiSanPham(lsp);
        }

        public List<LoaiSanPhamDTO> LayDanhSachLoaiSanPham()
        {
            return new LoaiSanPhamDAO().LayDanhSachLoaiSanPham();
        }
    }
}
